home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
Pakiet multimedia
/
Animacje, filmy i prezentacje
/
Odtwarzacze filmow
/
JahPlayer 0.1.0
/
jahplayer-0.1.0-installer.exe
/
openlibraries-0.3.0-runtime.exe
/
shaders
/
histogram.cg
< prev
next >
Wrap
Text File
|
2006-08-29
|
505b
|
18 lines
// fx - A compositing library representation.
// Copyright (C) 2005-2006 Visual Media FX Ltd.
// Released under the LGPL.
// For more information, see http://www.openlibraries.org.
float4 main( in float2 v_tex, uniform float min, uniform float max, uniform float4 channels, uniform samplerRECT inColor0 ) : COLOR
{
float4 color = texRECT( inColor0, v_tex );
float level = clamp( dot( channels, color ), 0.0f, 1.0f );
if( level < min || level >= max )
discard;
return color;
}